
import {
    createRouter,
    createWebHistory
} from 'vue-router'

const routes = [{
    path: "/",
    name: "index",
    redirect: "/home",
    component: () => import('@/Layout/index.vue'),
    children: [
        {
            path: '/home',
            name: 'Home',
            component: () => import('@/views/home.vue'),
        }
    ]
}]


const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router